package com.zld.smarket.dao;

import com.zld.smarket.dto.SaleList;
import com.zld.smarket.dto.TotalSaleData;
import com.zld.smarket.dto.TypeRate;
import com.zld.smarket.pojo.Sale;
import java.util.List;

public interface SaleMapper {
    int deleteByPrimaryKey(Long saleId);

    int insert(Sale record);

    Sale selectByPrimaryKey(Long saleId);

    List<Sale> selectAll();

    int updateByPrimaryKey(Sale record);

    List<SaleList> selectAllAndPage(Integer page, Integer limit);

    Long countSale();

    Long countSalebyno(Long i);

    TotalSaleData selectsale(int i);

    Long selectsalenum(int i, String s);

    TotalSaleData weektotalsale();

    TypeRate typerate(Long i);

    List<SaleList> search(String s, Integer page, Integer limit);

    TotalSaleData monthtotalsale();

    TypeRate salenumrate(Long i);
}